<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>player demo</title>
<style type="text/css">

</style>
</head>
<body>

<pre>

	支持flv格式媒体地址的视频播放器 （开源播放器：Vcastr）: <br>
	下载地址: <a href="http://code.google.com/p/vcastr/" target="_blank">http://code.google.com/p/vcastr/</a> <br>
	FLV地址:<input type="text" name="url" id="url" value="{__STATIC__}/media/happy_feet.flv" style="width:498px" />
	<input type="button" value="试听/关闭" style="background:;width:70px;" onclick="stMusic(url.value)" />
    <div id="playerSpan" style="display:none">
		&nbsp;<font color="#ff0000">FLV地址测试：</font>
		&nbsp;<span id="insetplayer" style="text-align:left;"></span>
    </div>

	<script src="{__STATIC__}/js/jquery/jquery.js" type="text/javascript"></script>
	<script type="text/javascript">
		function the(s){return document.getElementById(s);}
		function stMusic(url){
			if(the("playerSpan").style.display=="none"){
				var flashvar='';
				flashvar='vcastr_file='+url+'&amp;vcastr_title=&quot;&quot;&amp;menu=false';
				var ostr='';
				ostr+='<object height="350" width="458" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">';
				ostr+='<param name="movie" value="{__STATIC__}/player/swf/vcastr.swf" />';
				ostr+='<param name="quality" value="high" />';
				ostr+='<param name="menu" value="false" />';
				ostr+='<param name="wmode" value="opaque" />';
				ostr+='<param name="allowFullScreen" value="true" />';
				ostr+='<param name="FlashVars" value="'+flashvar+'" id="v_mark" />';
				ostr+='<embed height="350" width="458" ';
				ostr+=' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
				ostr+=' flashvars="'+flashvar+'" ';
				ostr+=' quality="high" wmode="opaque" ';
				ostr+=' src="{__STATIC__}/player/swf/vcastr.swf">';
				ostr+='</embed>';
				ostr+='</object>';
				/*_____________*/
				the("insetplayer").innerHTML = ostr;
				the("playerSpan").style.display = "block";
			} else {
				the("insetplayer").innerHTML = "";
				the("playerSpan").style.display = "none";
			}
		}
	</script>

</pre>

</body>
</html>
